Duty cycle correction method and its implementing circuit

ABSTRACT

A duty cycle correction method comprises detecting independently a relative delay time of two input differential signals; equating the sum of two relative delay time with the cycle of the input differential signals; and adjusting the two delay time to the same value. A corresponding implementation circuit comprises two time delay units; two correlation phase detectors connecting simultaneously with each of the two time delay units; a charge pump connecting with the output of each of the two correlation phase detectors, with its output connecting to the two time delay units in order to form a loop; and a synthesis output unit connecting with both the time delay units, thereby generating output signals. The adjusting range of duty cycle becomes much wider. The implementation circuit is absolutely symmetrical, so a duty cycle with high accuracy can be obtain.

BACKGROUND OF THE PRESENT INVENTION

1. Field of the Invention

The present invention pertains to a duty cycle circuit, most particularly, to a duty cycle correction method and its implementing circuit which uses a correlation phase detector in order to detect duty cycle errors, uses charge pumps in order to accumulate the errors and uses controllable delay units in order to adjust the duty ratio.

2. Description of Related Arts

It is very significant to adjust the duty cycle of a half-rate transmission clock. Generally, the conventional duty cycle circuit is implemented by adjusting the reverse threshold of the clock inverter or buffer. By increasing or decreasing the threshold, the pulse width of the high-level and low-level of an input clock can be changed and the duty ratio gets adjusted. The adjusting range is limited to the transition time of the clock, which is always short to reduce the signal interference (SI) effect.

As for a detecting method, the conventional way is to compare the DC levels of differential signals. However, the accuracy is easy to be influenced due to the DC offset of a comparator.

SUMMARY OF THE PRESENT INVENTION

It is the purpose of the present invention to provide a duty cycle correction method and it's implementing circuit, which adjusts the relative delay of the differential signals to obtain a rising edge or a falling edge with the same intervals, and accordingly, it will increase the adjusting range of the duty ratio. The implementing circuit is symmetrical, which can be designed with exact match to achieve a high-accuracy of duty ratio.

An object of the present invention is to provide a duty cycle correction method, comprising:

Detecting a relative delay time of input differential signals INP and INN independently, namely, relative to INN, detecting the delay time of INP, and relative to INP, detecting the delay time of INN, thereby obtaining a delay time t1 of INP relative to INN and a delay time t2 of INN relative to INP; equating the sum of t1 and t2 to the cycle of the input differential signals, that is, t1+t2=T; and adjusting t1 and t2 until the same value, that is, make a high level period and a low level period be the same long, wherein t1 and t2 corresponds to the high-level and low-level period of an input signal respectively, and is controlled by a feedback.

Since the cycle of the input signals T is determined, the changes of t1 and t2 are just the opposite. t1 and t2 corresponds to the time width of a high-level period and a low-level period of input signals cycle respectively. If the high-level period is shorter than the lower-level period, INN needs to be delayed, which means to extend the high-level period t1, until t1 be equal to t2, and then subsequent circuits can further output a signal with a duty ratio of 1:1.

The other object of the present invention is to provide a duty cycle correction circuit to implement the method described above. The circuit comprises two time delay units with a reverse but symmetrical control logic;

two correlation phase detectors connecting simultaneously with each of the two time delay units;

a charge pump with it's input connecting with the output of each of the two correlation phase detectors, with it's output connecting to the input of the two time delay units in order to form a loop; and

a synthesis output unit connecting with both the time delay units, thereby generating output signals.

The input terminal of the two time delay units is connected to the differential signals INP and INN respectively; the output terminal of the two time delay units is connected reversely to the input terminal of the two correlation phase detectors, while simultaneously connected to the input terminal of the synthesis output unit; the outputs of the two correlation phase detectors are connected to the two inputs of the charge pump; the output terminal of the charge pump is connected to the input terminal of the feedback control signal of two time delay units.

The two correlation phase detectors are responsible for detecting respectively the phase delay of signals on one path relative to the other path; before detecting a phase, the signals on the other path must be existing already.

The charge pump is responsible for accumulating time errors and generating a feedback control signal, DCNTL. When a high-level period is relatively long, the charging time will be longer than the discharging time, as a result, the voltage of the charge pump will get high, and vice versa.

The feedback control signal, DCNTL, is for adjusting the relative delay time of INP and INN.

when t1>t2, namely, the high-level period is longer then the low-level period and, in turn, the output voltage of the charge pump, DCNTL, is getting high, prolong the delay time of INP and shorten the delay time of INN in order to decrease t1 and increase t2.

when t1<t2, namely, the low-level period is longer than the high-level period, in turn, the output voltage of the charge pump, DCNTL, is getting low, shorten the delay time of INP and prolong the delay time of INN in order to increase t1 and decrease t2.

whether t1>t2 or t1<t2, the final goal is to make t1 be equal to t2, that is, the rising edges or falling edges of the output signals INP and INN have the same time intervals.

Afterwards, output the well-adjusted delay time input signals of INP and INN into the synthesis output unit in order to generate an output signal with a good duty ratio.

The synthesis output unit synthesizes two rising or two falling signals with the same time intervals into just one path. Two divided-by-two circuits can be used to detect the rising edge or falling edge. By way of exclusive OR, synthesized output signals can be obtained.

By adjusting the weights of two paths of input signals of the charge pump, the following equations can be established:

t1*k1=t2*k2

t1+t2=T,

wherein said k1 and k2 represents the ratio of charging current to discharging current; if k1=k2=1, then t1=t2; k1 and k2 can be changed randomly in order to obtain a duty ratio that is equal to k2/k1; that is to say, t1/t2=k2/k1. Theoretically, k1 and k2 can be changed randomly.

Various implementations may include one or more of the following advantages. For example, the adjusting range of duty cycle has become much wider. Theoretically, any predetermined outputted duty cycle can be achieved. The implementation circuit is absolutely symmetrical, therefore, a duty cycle with high accuracy can be obtain through good matching and technique compensating.

These and other objectives, features, and advantages of the present invention will become apparent from the following detailed description, the accompanying drawings, and the appended claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a schematic diagram of the differential signals;

FIG. 2 illustrates a structural diagram of the present invention;

FIG. 3 illustrates a specific circuit diagram of one embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Example I

Referring to FIG. 1 and FIG. 2, a duty cycle correction method comprises detecting the relative delay time of inputted differential signals, INP and INN; obtaining the time delay t1 of INP relative to INN, and the delay time t2 of INN relative to INP; and making the sum of t1 and t2 be equal to the cycle T of the input signals, namely, t1+t2=T, wherein t1 and t2 corresponds to a high-level period and a low-level period respectively, and finally adjusting t1 and t2 till they are the same value, namely, the high-level period is the same time as the low-level period.

Since the cycle of input signals are relatively fixed, the changes of t1 and t2 are just the opposite. When the high-level period is shorter than the low-level period, INN needs to be delayed, that is, prolong the high-level period to t1 and make it be equal to t2 finally. Then, after subsequent output circuits, an output signal with the duty ratio of 1:1 can be obtained.

Referring to FIG. 2, a duty cycle correction circuit is designed for implementing the corresponding method described above. It comprises two time delay units, “DL”, two correlation phase detectors, “R-PD”, a charge pump, “CP”, and a synthesis output unit.

The input terminal of the two time delay units goes respectively to two differential signals, INP and INN.

Each of the two time delay units is connected with two correlation phase detectors. The output of each of the two time delay units is connected reversely to the inputs of the two correlation phase detectors, namely, while signal SP is connected to A terminal of first correlation phase detector and B terminal of second correlation phase detector, the other signal SN is connected to B terminal of the first correlation phase detector and A terminal of the second correlation phase detector.

The outputs of two correlation phase detectors are connected to the two inputs of the charge pump, which, in turn, is connected to the time delay units with its output terminal, specifically, to the input port of the feedback control, “DCNTL”, so as to form a loop. The two time delay units have reverse and symmetrical logic controls.

Also, the outputs of two time delay units are connected to the input of the synthesis output unit which generates output signals.

The feedback control signal DCNTL, acts for adjusting the relative delay time of INP and INN. When t1>t2, the high level is longer, correspondingly, the output voltage DCNTL of the charge pump goes up; then increase the delay time of INP and decrease the delay time of INN in order to shorten t1 and prolong t2 (because at the moment t1>t2), whereas if t1<t2, the low level is longer, accordingly, DCNTL goes down; then decrease the delay time of INP and increase the delay time of INN in order to prolong t1 and shorten t2. Finally, t1 and t2 will get to the same, namely, the rising edge or falling edge of the input signals, INP and INN, will get to the same intervals.

The synthesis output unit works for synthesizing the input signals with adjusted delay time of INP and INN and outputting a signal with a good duty ratio, which can be implemented by double edge triggered circuit.

The synthesis output unit synthesizes two-paths rising edges or two-paths falling edges into one path signal. Two divide-by-two frequency divider circuits can be used to have detected the rising edges and falling edges, after which the way of Exclusive OR can be used to synthesize output signals.

By adjusting the weights of two paths of input signals of the charge pump, the following equations can be established:

t1*k1=t2*k2

T1+t2=T,

wherein said k1 and k2 represents the ratio of charging current to discharging current; if k1=k2=1, then t1=t2; k1 and k2 can be changed randomly in order to obtain a duty ratio that is equal to k2/k1; that is to say, t1/t2=k2/k1. Theoretically, k1 and k2 can be changed randomly.

Example II

FIG. 3 shows the other embodiment. The synthesis output unit, with the other units same as the foregoing, comprises two divide-by-2 frequency dividers and a symmetrical Exclusive OR unit.

The charge pump has an equally-weighted configuration.

The final output wave has a duty ratio of 49.5%.

When the output signal has a duty ratio of 1:1, clock signals may be frequency divided by N. FIG. 3 shows an example of divided-by-four circuit, wherein the differential signals, INN and INP, are inputted directly to the two input terminals of the charge pump. Usually, frequency dividing circuits, especially multi-frequency dividing circuit, can be used to obtain signals with the duty ratio of almost exact 1:1.

The specific steps are as follows:

initializing the voltage of the charge pump;

inputting signals that have gone through frequency division to the charge pump circuit;

stopping inputting signals after an even number of cycles, 2*M (here M=100).

After having done the above steps, the output level is supposed to keep the same value. However, if the output level goes up, it is indicated that charging currents are too big, whereas if the output level goes down, it is indicated that charging currents are too little. By connecting in parallel two groups of smaller P type and N type transistor respectively, the charge pump will start to charge or discharge. After two cycles of charging and discharging, compare the voltage DCNTL of the charge pump with the initial level; if the DCNTL is higher than the initial level, then add more N type transistors; if the DCNTL is lower than the initial level, then add more P type transistors. Next, continuous scanning needs to be carried out in order to set up a critical status which will be the final adjusted result.

One skilled in the art will understand that the embodiments of the present invention as shown in the drawings and described above is exemplary only and not intended to be limiting.

It will thus be seen that the objects of the present invention have been fully and effectively accomplished. Its embodiments have been shown and described for the purpose of illustrating the functional and structural principles of the present invention and is subject to change without departure from such principles. Therefore, this invention includes all modifications encompassed within the spirit and scope of the following claims. 

1. A duty cycle correction method comprising: detecting independently a relative delay time of input differential signals INP and INN, thereby obtaining a delay time t1 of INP relative to INN, and a delay time t2 of INN relative to INP; equating the sum of t1 and t2 to the cycle of the input differential signals, that is, t1+t2=T; and adjusting t1 and t2 to the same value, that is, making a high level period of and a low level period be the same, wherein t1 and t2 correspond to a high-level and a low-level period of an input signal respectively and are controlled by a feedback control signal.
 2. The method as recited in claim 1, wherein when the high-level period is shorter than the low-level period, prolong the high-level period to t1 and finally adjust t1 to be equal to t2 in order to obtain a duty ratio of 1:1.
 3. A duty cycle correction circuit for implementing the method in claim 2, comprising: two time delay units with a reverse but symmetrical control logic; two correlation phase detectors connecting simultaneously with each of the two time delay units; a charge pump connecting with the output of each of the two correlation phase detectors, with its output connecting to the two time delay units in order to form a loop; and a synthesis output unit connecting with both the time delay units, thereby generating output signals.
 4. The duty cycle correction circuit as recited in claim 3, wherein the input of the two time delay units is connected respectively to differential signals INP and INN; the outputs of the two time delay units are connected reversely to the inputs of the two correlation phase detectors, while simultaneously connected to the input of the synthesis input unit; the outputs of the two correlation phase detectors are connected to two inputs of the charge pump; and the output of the charge pump is connected to the input of the feedback control signal of the two time delay units.
 5. The duty cycle correction circuit as recited in claim 4, wherein the two correlation phase detectors are for detecting the phase delay of one path signals, relative to the other path.
 6. The duty cycle correction circuit as recited in claim 4, wherein the charge pump accumulates the time errors of a high-level or a low-level period and generates the feedback control signal for adjusting the relative delay time of two differential input signals INP and INN; when the high-level period is longer than the low-level period, charging time will be longer than discharging time, in turn, the voltage of the charge pump will increase, and vice versa.
 7. The duty cycle correction circuit as recited in claim 4, wherein the feedback control signal acts on adjusting the relative delay time, t1 and t2, of INP and INN with the following process: when t1>t2, namely, a high-level period is longer then a low-level period and, in turn, the output voltage of the charge pump goes up, then prolong the delay time of INP and shorten the delay time of INN in order to decrease t1 and increase t2; when t1<t2, namely, the low-level period is longer than the high-level period, in turn, the output voltage of the charge pump goes down, then shorten the delay time of INP and prolong the delay time of INN in order to increase t1 and decrease t2; whether t1>t2 or t1<t2, keep adjusting t1 and t2 till they are equal, that is, the rising edges or falling edges of the output signals INP and INN have the same time intervals,
 8. The duty cycle correction circuit as recited in claim 3, wherein the two correlation phase detectors are for detecting the phase delay of one path signals, relative to the other path.
 9. The duty cycle correction circuit as recited in claim 3, wherein the charge pump accumulates the time errors of a high-level or a low-level period and generates a feedback control signal for adjusting the relative delay time of two differential input signals INP and INN; when the high-level period is longer than the low-level period, charging time will be longer than discharging time, in turn, the voltage of the charge pump will increase, and vice versa.
 11. The duty cycle correction circuit as recited in claim 3, wherein the synthesis output unit generates output signals with improved duty radio once adjusted delay time output signals of INP and INN are inputted into the synthesis output unit.
 12. The duty cycle correction circuit as recited in claim 3, wherein the synthesis output unit synthesizes two rising or falling signals with the same time intervals into just one path, that is, having detected the rising or falling edges, and then synthesizing the output signals by way of exclusive OR.
 13. The duty cycle correction circuit set forth in claim 3, wherein weights of two paths of input signals of the charge pump can be adjusted in order to obtain t1*k1=t2*k2 t1+t2=T, k1 and k2 represents the ratio of charging current to discharging current of the charge pump; t1 and t2 represents the delay time of two input differential signals respectively; T is a cycle of the input differential signals; if k1=k2=1, then t1=t2; k1 and k2 are both variable, so the duty cycle can be adjusted until t1/t2=k2/k1. 